package com.lianyi.commonsdk.util;

import android.widget.ImageView;

import com.jess.arms.http.imageloader.glide.GlideArms;
import com.lianyi.commonsdk.R;
import com.lianyi.commonsdk.core.AppLifecyclesImpl;


/**
 * ================================================
 * 作者: leilei
 * 版本: 1.0
 * 创建日期: 2017/12/9 16:35
 * 描述:
 * 修订历史:
 * ================================================
 */

public class GlideUtils {
    private static final String TAG = "glideUtil";

    /**
     * @param imageView 图片控件
     * @param url       图片地址
     */
    public static void showImage(ImageView imageView, String url) {
        GlideArms.with(AppLifecyclesImpl.getContext()).load(url)//.override(800, 800)
                .centerCrop().error(R.mipmap.bg).into(imageView);
    }
}
